package com.he.hsdyc.designmodule.strategy;

public class Test {

    public static void main(String[] args) {
        ResultMsg resultMsg = new DiscountsUse().useCoupons(new Order(1L,"2019073101",40.00,DiscountsFactory.FIFTY_MINUS_SEVER));
        System.out.println(resultMsg.toString());


        ResultMsg resultMsg2 = new DiscountsUse().useCoupons(new Order(1L,"2019073102",101.00,DiscountsFactory.ONE_HUNDRED_MINUS_TWENTY));
        System.out.println(resultMsg2.toString());


        ResultMsg resultMsg3 = new DiscountsUse().useCoupons(new Order(1L,"2019073103",250.13,DiscountsFactory.TWO_HUNDRED_MINUS_FIFTY));
        System.out.println(resultMsg3.toString());
    }
}
